package com.qmds.userserver.user.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qmds.common.core.entity.UserLog;
import com.qmds.common.core.vo.R;
import com.qmds.userserver.user.dao.UserLogMapper;
import com.qmds.userserver.user.service.UserLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 用户日志表(UserLog)表服务实现类
 *
 * @author makejava
 * @since 2024-08-12 17:41:48
 */
@Service("userLogService")
public class UserLogServiceImpl implements UserLogService {
    @Resource
    private UserLogMapper userLogMapper;
    @Override
    public R queryByUid(Integer uid) {
        return R.ok(userLogMapper.selectList(new LambdaQueryWrapper<UserLog>().eq(UserLog::getUid,uid).orderByDesc(UserLog::getCreateTime)));
    }
}
